#! /usr/bin/python

import sys
import time

##Take an integer an as arguments and trys to guess the number. The program
##also times how long it takes to guess the number in seconds.

start_time = time.time() ##Sets the start time to the time at the start of
						 ##program in seconds.

number = int(sys.argv[1])##Take the first command line argument and converts it
						 ##into a string.

##Then count through all the positive and negative integers.

i = 0

while True:
	if number == i:
		print("Your password is",i,", this took me", time.time() - start_time,"seconds to crack")
		break
	elif number == -i:
		print("Your password is",-i,", this took me",time.time() - start_time,"seconds to crack")
		break
	else:
		i += 1
		
##This algroithm is O(n).